import axios from '@/libs/api.request'

  // 获取列表数据
  export const _getList = (param) => {
    return axios.request({
      url: 'system/unit/show',
      params: param,
      method: 'get'
    })
  }

  // 获取全部
  export const _getAllUnit = (param) => {
    return axios.request({
      url: 'system/unit/all',
      params: param,
      method: 'get'
    })
  }

  // 保存 & 新增
  export const _saveData = (param) => {
    return axios.request({
      url: 'system/unit/update',
      params: param,
      method: 'post'
    })
  }

  // 删除
  export const _delData = (param) => {
    return axios.request({
      url: 'system/unit/delete',
      params: param,
      method: 'post'
    })
  }